#ifndef LOGMANAGER_H
#define LOGMANAGER_H

#include <QString>
#include <QStringList>
#include "Define.h"


class LogManager
{
	public:
		LogManager();
		void Initialize();
		bool AddLog(QString msg, bool isTx);
		QString GetLog(bool isTx, int idx) const;
		void DeleteAllLog();
		void DeleteLog(bool isTx);
		void DeleteLog(bool isTx, int idx);
		int GetLogCount(bool isTx) const;

	private:
		void DeleteOldLogs(bool isTx, int delCnt);

	private:
		QStringList _txList;
		QStringList _rxList;

//		QStringList _txLogs;
//		QList<Log> _rxLogs;
};

#endif // LOGMANAGER_H
